package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NLaboratoryMechanicsYGroup;
import com.ruoyi.zhgd.domain.bo.NLaboratoryMechanicsYGroupBo;
import com.ruoyi.zhgd.domain.vo.NLaboratoryMechanicsYGroupReportVo;
import com.ruoyi.zhgd.domain.vo.NLaboratoryMechanicsYGroupVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 压力机数据主Mapper接口
 *
 * @author zyb
 * @date 2023-09-11
 */
public interface NLaboratoryMechanicsYGroupMapper extends BaseMapperPlus<NLaboratoryMechanicsYGroupMapper, NLaboratoryMechanicsYGroup, NLaboratoryMechanicsYGroupVo> {

    /**
     * 压力机设备信息列表
     * @param build
     * @param bo
     * @return
     */
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NLaboratoryMechanicsYGroupVo> page(Page<Object> build, @Param("bo") NLaboratoryMechanicsYGroupBo bo);

    NLaboratoryMechanicsYGroupVo selectMap(Integer id);

    void updateEligible(@Param(value = "id") Integer id,@Param(value = "eligible") Integer eligible,@Param(value = "pdjg") String pdjg);

    List<NLaboratoryMechanicsYGroupReportVo> selectReport(@Param(value = "sybh")String sybh);
}
